
import Vue from 'vue'
import App from './App'
import router from './router'
import utils from './utils/index.js'
import "@/assets/base.css"
import "@/assets/iconfont/iconfont.css"
import "@/assets/rem.js"
import 'mint-ui/lib/style.css'
import vueEsign from 'vue-esign'
Vue.use(vueEsign)
//调试工具
// import Vconsole from 'vconsole';
// const  vConsole =  new Vconsole();
// Vue.use(vConsole);

import { 
  Toast,
  XHeader,
  Loading,
  Group,
  XButton,
  Calendar,
  LoadMore,
  Cell,
  AlertModule
  } from 'vux'

//mint-ui
import { InfiniteScroll } from 'mint-ui';
Vue.use(InfiniteScroll);

//使用vux 
Vue.component('toast', Toast)
Vue.component('x-header', XHeader)
Vue.component('loading', Loading)
Vue.component('group', Group)
Vue.component('x-button', XButton)
Vue.component('calendar', Calendar) //日期时间选择
Vue.component('cell', Cell)
Vue.component('load-more', LoadMore)
Vue.component('AlertModule', AlertModule)

Vue.prototype.$utils = utils
Vue.config.productionTip = false
let vm = new Vue({
  el: '#app',
  router,
  render: (h) => h(App)
})

Vue.use({
  vm
})
